package com.question.controller;

import com.question.common.Result;
import com.question.enums.ResultEnums;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/test")
    public Result test() {
        Map<String, Long> map = new HashMap<>();
        map.put("1", 1L);
        return Result.error(ResultEnums.ERRORS.code, ResultEnums.ERRORS.msg);
        //        return Result.success(ResultEnums.SUCCESS.code, map);
    }

}
